﻿<Window x:Class="Requestor.TestApp.ParameterControl"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Новый параметр"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen"
        SizeToContent="Width"
        Height="154">
    <Grid>
        <StackPanel Orientation="Vertical"
                    Margin="10">
            <StackPanel Orientation="Horizontal"
                        Margin="5">
                <TextBlock Text="Ключ:" />
                <TextBox Text="{Binding Key, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         Width="200"
                         Margin="32,0,0,0" />
            </StackPanel>
            <StackPanel Orientation="Horizontal"
                        Margin="5">
                <TextBlock Text="Значение:" />
                <TextBox Text="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         Width="200"
                         Margin="10,0,0,0" />
            </StackPanel>
            <Button Content="Добавить"
                    Command="{Binding AddCommand}"
                    Margin="10" />
        </StackPanel>
    </Grid>
</Window>